package com.execl.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.execl.mapper.ExeclMapper;
import com.execl.pojo.Execl;
import com.execl.service.ExeclService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ExeclServiceImpl implements ExeclService {

    @Resource
    private ExeclMapper execlMapper;

    @Override
    public void insert(Execl execl) {
        execlMapper.insert(execl);
    }

    @Override
    public List<Execl> find() {
        QueryWrapper<Execl> queryWrapper = new QueryWrapper<>();
        queryWrapper.select("id").gt("id", 2000000);
        return execlMapper.selectList(queryWrapper);
    }
}
